package com.github.bitsapling.sapling.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户积分表：记录用户已有积分等经常变动的数据
 * </p>
 *
 */
@TableName("user_exp")
public class UserExp implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID，外健
     */
    private String id;

    /**
     * 累计上传量
     */
    private Long uploaded;

    /**
     * 累计下载量
     */
    private Long downloaded;

    /**
     * 分享率
     */
    private Double ratio;

    /**
     * 经验值（升级）
     */
    private Integer experience;

    /**
     * BT币
     */
    private Integer bt;

    /**
     * 更新时间
     */
    private LocalDateTime updatedTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getUploaded() {
        return uploaded;
    }

    public void setUploaded(Long uploaded) {
        this.uploaded = uploaded;
    }

    public Long getDownloaded() {
        return downloaded;
    }

    public void setDownloaded(Long downloaded) {
        this.downloaded = downloaded;
    }

    public Double getRatio() {
        return ratio;
    }

    public void setRatio(Double ratio) {
        this.ratio = ratio;
    }

    public Integer getExperience() {
        return experience;
    }

    public void setExperience(Integer experience) {
        this.experience = experience;
    }

    public Integer getBt() {
        return bt;
    }

    public void setBt(Integer bt) {
        this.bt = bt;
    }

    public LocalDateTime getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(LocalDateTime updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public String toString() {
        return "UserExp{" +
        "id = " + id +
        ", uploaded = " + uploaded +
        ", downloaded = " + downloaded +
        ", ratio = " + ratio +
        ", experience = " + experience +
        ", bt = " + bt +
        ", updatedTime = " + updatedTime +
        "}";
    }
}
